import logging


LOG_FORMAT = "%(levelname)1.1s %(asctime)s.%(msecs)03d %(name)s:%(lineno)d %(message)s"


def config_logging(level='INFO'):
    logging.basicConfig(
        level=level,
        format=LOG_FORMAT,
        datefmt="%Y-%m-%d %H:%M:%S",
    )
